﻿// -----------------------------------------------------------------------
// <copyright file="cmdletInstaller.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace SPMigrationCmdlets
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Collections.ObjectModel;
    using System.Management.Automation;
    using System.Management.Automation.Runspaces;
    using System.ComponentModel;

    /// <summary>
    /// This is the installer class for the commandlets.
    /// </summary>'
    [RunInstaller(true)]
    public class cmdletInstaller : CustomPSSnapIn
    {
        private Collection<CmdletConfigurationEntry> cmdlets;
        public override string Description
        {
            get { return "These commandlets can be used to Import/Export content to SharePoint 2010"; }
        }

        public override string Name
        {
            get { return "SPMigrationCmdlets"; }
        }

        public override string Vendor
        {
            get { return "Microsoft Consulting Services/Kimmo Forss"; }
        }

        public override Collection<CmdletConfigurationEntry> Cmdlets
        {
            get
            {
                if (null == cmdlets)
                {
                    cmdlets = new Collection<CmdletConfigurationEntry>();
                }
                cmdlets.Add(new CmdletConfigurationEntry("Import-SPMigrationData", typeof(Importer), "SPMigrationCmdlets.dll-Help.xml"));
                cmdlets.Add(new CmdletConfigurationEntry("Export-SPMigrationData", typeof(Exporter), "SPMigrationCmdlets.dll-Help.xml"));
                cmdlets.Add(new CmdletConfigurationEntry("Export-SPSingleWeb", typeof(ExportWebCmdLet), "SPMigrationCmdlets.dll-Help.xml"));
                return cmdlets;
            }
        }


    }
}
